The connections for the lights are all at the switch on the top tube. I had to pull that switch (t10 or t15, I think) and disconnect the wires then pull them through the tubes.
The taillight was initially installed by threading from the motor cover, up the down tube, up the head tube, and into the top tube.
I pulled that and re-ran it through the hole in the seat post clamp, down the seat post and seat tube, over the motor, and then back up the down tube, head tube and top tube as before.
Removing the fork was necessary to make the jump up from the down tube to the top tube. There’s a plastic sleeve inside the head tube great protects the internal cables and wires.
I just took out one spacer/washer/bearing at a time and set them aside in order. It was easy with a helper to hold the fork up as I reset all the pieces.
I did all of the above with a handful of Allen wrenches. There is one motor bolt that is blocked by the chainring, but the chainring comes off the crank arms with more Allen bolts.