Removing unnecessary css rules