Refactoring as AIP application.