Smart BreakApart / Separte Shape (?)


can we achieve this with macro ?

*ignore the color, it just to tell the shape is separated.

With normal breakapart, we get all shape separated. Sometime we just need the shape to be separated, just like the 3rd item in image.

im curious, how it can be done with macro?