Delete all the redundant classes