Remove all classes without functionality.