attenuateModule = (params, originalObject) => {
  return fromEntries(params.map((key) => [key, originalObject[key]]))
}
Picks stuff in the policy out of the original object

@type {ModuleAttenuatorFn<
  [string, ...string[]],
  Record<string, unknown>
>}
@internal