A very neat inline heavy duty switch harness fitted with a XT60, Deans or EC3 plug and socket. RC Switch Harness with Charging Socket. It also has a Futaba/JR style charging socket built into the body of the switch which has a sliding cover to stop the ingress of muck and debris.
eBay