Refactoring based on codenarc analysis