I’m intrigued by this idea.
Cant recall were I saw it but one of the budget Ebicycle setup build had a conventional throttle cable actuated fitted with cable leading inside frame to the standard Hall sensor
I dont find this part in danger of becoming damaged in a crash if it does I most likely...