Apply modification to both 'oneOf' occurrences
Use the same heuristics for 'anyOf'