Issue #3548151: Add support for object oriented hook implementations using autowired services
Closes #3548151
This MR converts all three module hooks to be object-oriented.
Unfortunately, I was not able to recreate the requirements check for the install phase because the hook_requirements replacement in D11 is neither a service nor a hook and cannot load other code from the module. That means it would not be able to call the methods on DepcalcRequirements.