merging attributes for two attribute groups.
code formatting
Attribute groups feels too complicated. Simplify a bit