In relation to this article: https://ebiketips.road.cc/content/news/bike-industry-calls-for-clear-rules-on-replacement-e-bike-batteries-and-warns-users
I read stuff like this from "industry groups" and am immediately suspicious of their motives. More than a few shades of Apple and the auto industry pushing the idea that third party "unofficial" repair is unsafe and irresponsible, and only the manufacturer and their "authorized" associated third parties can be trusted - and should be permitted by law - to handle things. This conveniently places them in a situation where planned obsolescence can be introduced and enforced in a way it can't with traditional bicycles - if only model XYZ3 motors and battery packs will fit your frame and electronics systems and they discontinue those & declare both refurbishing old XYZ3 parts and modifying more modern parts to fit your frame "unsafe", then in practice they're limiting the lifetime of all the parts of the bike to the sales lifetime of the motor and battery packs that fit it.