Clean up attributes.