Move the creation of the `req` object to the point where it is actually used, improving code clarity and reducing premature initialization.
Move the creation of the `req` object to the point where it is actually used, improving code clarity and reducing premature initialization.