Data conversion for datasource Plugin


I want to update the query definition of one of my datasource plugins. In order to do that I need to apply a breaking change for the query definitions. I am looking for the right place where to put the conversion logic.

For PanelPlugin there is a hook setMigrationHandler which is very useful but I can’t find something similar for BackendPlugin. Does anyone has suggestions?