Remove unused namspaces from classes.