Remove unneeded attributes