With time I've progressively become less concerned with staying DRY, which perhaps counterintuitively has made it easier to avoid spaghetti problems. It's easier to keep things clean with a handful of near-duplicates that are tailored to the needs of their call sites than it is with a single trying to do everything.
It's a bit more work to keep behavior consistent across duplicates but I'll take it if it means less untangling work for myself in the future.