Generally our tooling tries to preserve existing waypoints; due to the way expanding works in your example awkward waypoints are added, and these are “preserved” during collapse.
What you showcase does not happen if the participant has enough space to expand: