refactor-engine

Plan and execute multi-file refactors with safety checks; use when asked to reduce tech debt or reorganize code modules.