It’s connected to the motor. You have to drop the back motor cover to get access to the connectors. Not sure if you can get the cable out without dropping the motor itself. Cable channels are very tight and battery plug plate may be in the way.
Check out page 8 here
I'm curious if anyone with a Gen 5 has seen any of the battery disconnect issues that have plagued older gens. Really hoping the new RIB design has solved it...