Abstract the request id logic in a module

[#53895047]