Remove some unnecessary attributes.