ai refactoring slowdown