Cross-target query options

I’m building a datasource plugin, and I was wondering if there was a way to add options to queries that apply across all targets?

For instance, we make logs and metrics available through this plugin, so while Explore Mode makes the exploreMode variable in options available, we don’t have this for panels.

In panel mode we have a toggle on our QueryEditor that switches between logs mode and metrics mode. This means however that when a new query is added, you get a Metrics/Logs toggle on every target, which doesn’t really make sense.

Is there a way to add settings that aren’t specific to a query target?