If we are clearing all references in the schematic, then we can clear our references, otherwise, just eliminate the ones for the proper sheets. We don't want to clear the references on Sheet A when we copy and paste it to Sheet B. Fixes https://gitlab.com/kicad/code/kicad/-/issues/20173