Perform refactoring.