Merge "Refactor RemoteInstanceDeviceFactory out of local_image_remote_instance.py"