Revert "Simplify callback registration"
Revert "Simplify callback registration"

This reverts commit c3b167ee

etiennestuder/teamcity-build-scan-plugin,etiennestuder/teamcity-build-scan-plugin,etiennestuder/teamcity-build-scan-plugin