I'm just suggesting to replace the body of this function with a call to process with the `#rpblistbucketsreq` record with stream set to false which will end up executing the very same case statement.