Re-factor client to use common code for converting request object to request parameters.