ORM Datasource Setting

I have a case where I'd like to add a different datasource for a plugin's ORM transactions. I'd tried to set it up in the plugin but this is the only way I could get it to work. Would love to see this in the main codeline.