static deleteExistingHook(target, hook, name) {
    // if it's already registered, delete it so the new one overrides
    if (target.hooks[hook][name]) {
      delete target.hooks[hook][name];
    }
  }
@param {typeof Register | Register} target
@param {keyof Hooks} hook
@param {string} name