submodule: extract get_fetch_task()