Yeah, knowing the types is absolutely crucial to grabbing the right collections. I pretty much just stole the _unit_type_ids_for_repo code from you