getDocumentTitle = (type, splat, prefix = '') => {
  if (!type) return '';
  const label = toTitleCase(type.toString());
  return [prefix, splat, label].filter(Boolean).join(' | ');
}
Given a resource type and splat, returns a formatted title string.
Falsy values are discarded.
@param {String} type - Resource type.
@param {String} splat - Directory splat for current resource.
@param {String} [prefix=''] - Optional string text to be placed in front.
@return {String} Empty string or formatted title.