"Repair by replacement " is something I just witnessed at a big brand's dealership. As the owner generously dealt with it while we waited he replaced part after part from new working bikes till it isolated one electrical component.
I was thinking, how would I ever chase that down not having numerous spare similar bikes to pull parts from?