Plan and execute safe refactoring with dependency analysis. Ensures no email sends are disrupted, no queue processing breaks, no API contracts change.
Before applying any refactor:
npx tsc --noEmit — zero type errorsnpm run test — all passnpm run build — succeeds