This is precisely why I stick with Bosch equipped ebikes, no matter how attractive a bike
Specialized produces. Specialized has made Orphans out of their riders in as few as two years with frequent changes to motors and almost immediate lack of parts to service older versions.
Bosch has publicly committed to 7 years of tech support and replacement parts after a motor, battery or any other component is no longer currently sold. The gen 2 moto CX & Speed motors came out in 2016 and were replaced in 2020. That means that they will be supported by Bosch with parts and tech support until 2027.