Remove unneeded attributes from materials