Delete superfluous classes