Create branches from a brep list with same-area

Hello everyone,
I have a long collection of breps sorted into as many branches as the number of floors of the buildings. Instead, I would like to separate the breps by getting a branch for each building. Do you know if there is a way? I was able to get what I wanted with centroids, but then I can’t separate the breps in any way. I have attached the file and the image.
Thank you very much to those who can help me (250.9 KB)

this groups them by XY coordinates of their area centroids (assuming every level has exactly the same centroid XY coordinate)

group by XY centroid (242.6 KB)


Thank you very much Inno, it was exactly what I need!