-- | Turns every group within an Obj into an IndexedModel.
toIndexedModel :: Obj -> [IM.IndexedModel]
toIndexedModel = map groupToIndexedModel . groups
toIndexedModel :: Obj -> [IM.IndexedModel]
toIndexedModel = map groupToIndexedModel . groups
toIndexedModel = map groupToIndexedModel . groups