Refactoring to remove :not selector and replace with a --text modifier class