Remove unused/unnecessary attributes.