Refactoring via processing