code: function prepareTransforms (entityTransforms, namespace, target) {
    const resolvedNamespace = namespace || ''
    const resolvedTarget = target || {}
    for (const d in entityTransforms) {
      if (typeof (entityTransforms[d]) === 'function') {
        resolvedTarget[resolvedNamespace + d] = entityTransforms[d]
        resolvedTarget[d] = entityTransforms[d]
      } else {
        prepareTransforms(entityTransforms[d], resolvedNamespace + d + '.', resolvedTarget)
      }
    }
  
    return resolvedTarget
  }
docs: flattens out namespaced renderers into a single object