Removes unnecessary classes from all pages