This may be easier when https://github.com/easybuilders/easybuild-framework/pull/4918 is merged, as hooks could then become a separate repository entirely.