use RemoveOverlaps on collection of shapes

There is a function in the api called RemoveOverlaps, which seeks for overlaps in one curve. Is there a way to use this function over multiple curves from multiple shapes?

In short i try to remove double lines in my drawing soo my lasercutter does not cut that line twice.