Codebase Cleanup and Dependency Simplification
We analyze the codebase, remove dead code, and break tight dependencies that slow down updates. We also add test coverage where needed and stabilize fragile parts. The code becomes easier to modify and reason about.