withCfg = (plugin, key, def) =>
  plugin.plugin_module.configuration_workflow
    ? plugin.plugin_module[key]
      ? plugin.plugin_module[key](plugin.configuration || {})
      : def
    : plugin.plugin_module[key] || def
@param {object} plugin
@param {string} key
@param {object} def
@returns {*}