Long term statistics and changing entities

Hello all,
I am currently considering my options with regards to my energy provider. It made me think about how to keep short and long term statistics consistent when changing providers. For example, my current provider is Octopus and I’m using the excellent Octopus integration to get usage readings as well as to keep track of daily price changes for gas and electricity.
If I were to change provider and hopefully use a different integration, what would be the best way to carry on storing the statistics in a consistent way so that graphs and charts are not affected?

A while back I remember reading either here or on Reddit a post by someone who said that he uses stub like templates for all his entities so that he can change them without having to update automations and scripts which I thought would be a lot of work but a rather good idea.

What do you guys and gals think? Any ideas and recommendations would be greatly appreciated.

Also, is it possible to migrate statistics between entities? I would be happy to spend the time doing this if this would have a better long term solution.

Thanks in advance