Extracting same code of endpointslice and endpointslicemirror into a new shared EndpointSlice package