ai assisted refactoring