Remove extra classes.