Flatten redundant "or"