Remove unneccessary attributes