If we don't split the attribute groups into two groups here we can iterate over the objects instead.