Perform package refactoring.