Get rid of unneeded attributes