Remove useless classes.