function useModule(defaultFn = null) {
  return (plugins, options = {}) => {
    plugins = _.isArray(plugins) ? plugins : [plugins];

    plugins.forEach((plugin) => {
      if (Array.isArray(plugin)) {
        plugin.forEach(p => registerModule(p, defaultFn, options));
      }
      else {
        registerModule(plugin, defaultFn, options);
      }
    });
  };
}
@param {Function|null} defaultFn - The default function to call if the module does not have a known key.
@returns {void}