I thought I would face this concern so I built for it. I later discovered it wasn't necessary for me. But if it is for you, you can do this easily and cheaply enough. I used CCTV power connectors. The
males are here, and oddly enough, the
females are unavailable. I guess you have to do some searching but maybe this is enough to go on.
I have to remember to undo these connectors before removing my wheel. They're very strong, and on the few times I forgot, they held together, and the original plug came out of the hub.