Move `attributes` to the `AttributeSet` object.