CollectTree component (a simpler CollectGroups)