function inflectedLabel(fieldName, shouldHumanize) {
  const pieces = fieldName.split('.');
  let label;
  do {
    label = pieces.pop();
  } while (label === '$' && pieces.length);
  return shouldHumanize ? humanize(label) : label;
}
@param {String} fieldName The full generic schema key
@param {Boolean} shouldHumanize Humanize it
@returns {String} A label based on the key