it is a bin job and unless you find a second hand motor and a bike shop to use there software to setup the motor it wont work
there also region locked so if you get a motor from say Germany it wont work on a uk bike dealers portal for the diagnostic software.
even oping the motor will mean it...