Refactor OpProcessor implementations for better reusability. #246