Removing unneeded imports on generated classes.