Completion of #129818 Did not want to put `llvm::StringRef()` as the default value instead it was `""`
Completes the work started in #128262. This PR removes the old way of register request handlers with callbacks and makes the operator const.
Continuation of the work started in https://github.com/llvm/llvm-project/pull/128262. Builds on top of #128453.