Refactoring into processing traits