refactoring bot