Removes overlaid segments