delete unnecessary class in upgrade pacakge