Refactored hiredis argv and arg lengths creation into its own function.