Whenever you're ready, walk me through how you'd approach this.
Walk through how you would refactor a legacy, tightly coupled codebase to make it highly testable and modular.
Explain how you would identify architectural seams, define module and layer boundaries, introduce dependency injection, isolate external systems, and migrate incrementally without stopping delivery. Include the dependency direction, testing strategy, and trade-offs behind your proposed structure.