Remove unneeded content from class2.