function convertIntegrationFnToClass(
  name,
  fn,
) {
  return Object.assign(
    function ConvertedIntegration(...args) {
      return fn(...args);
    },
    { id: name },
  ) ;
}
Convert a new integration function to the legacy class syntax.
In v8, we can remove this and instead export the integration functions directly.

@deprecated This will be removed in v8!