Get rid of unused attributes