Refactoring module