The Perils of AI Coding while refactoring