refactoring processing options