Refactor a codebase by untangling dependencies and verifying intended behavior.
Untangle a whole codebase in one pass, so agents working in it read less per change, break less without noticing, and debug faster.