Simplify a condition.