AI refactoring started