code: function getStageHandlingFunction(context, settingName) {
    const fn = getStageHandlingSetting(context, settingName);
    return typeof fn === 'function' ? fn : undefined;
  }
docs: Returns the function configured at the named stage handling setting on the given context (if any and if it's a real
  function); otherwise returns undefined.
  @param {StageHandling} context - the context from which to fetch the function
  @param {string} settingName - the name of the stage handling setting
  @returns {Function|undefined} the named function (if it's a function); otherwise undefined