Normally, you'd remove that cable guide arrangement and run the cables in outers around the motor, but that guide on the front of the downtube looks like it might interfere. You could grind it back , or it's possible that the motor would fit vertically downwards, which might be OK for commuting...