Refactors :not selector to something more generic