Context
In my web application, I am making requests to an API which returns paginated responses. To adhere to the DRY principle, I decided to use a gener