[PATCH 1/8] remote_driver: Move URI arg extraction into a separate function