Removes extra classes