Use `Hash#transform_values` to clean up `AttributeSet`