Japanese commuter bikes always have a front basket. This was a great place to install all the wiring, right on top of the powered wheel, which kept the wires short and neat.
The original wheel was 27" and the new wheel is 26", so I had an extra 30mm of space after lowering the brake and fender to match the new wheel size.
I also artificially raised the basket about 30mm, and this clearance was perfect to slide in a 75mm thick LiFePo4 battery.