refactor: export HasRegisterServices
(backport #23488)
#23490
+694
−493
Merged