Currently, the registered onLoadExtensionSchemaUpdates hook handler is registered through a static method of the EntitySchemaHooks class. However, as this class depends on some MediaWiki services, it could leverage from the new MediaWiki dependency injection system.
To improve the analyzability and testability of this hook handler, we should refactor this static handler to a class that implements the LoadExtensionSchemaUpdatesHook interface and has its dependencies injected via constructor.
Acceptance Criteria:
- The hook handler function is moved to a class that implements the LoadExtensionSchemaUpdatesHook interface and injects its dependent services
- The hook handler's registration in extension.json declares its service dependencies for dependency injection