Removes redundant classes from p and header tags