Simplify a selector.