discover: Handle and track plugin_options