Refactoring OutputProcessor So Individual Units Can Be Tested