Refactoring and cleaning plugin