Refactoring the MethodProcessor