Combine selectors to remove duplicate code