This implements @tt 's suggestion to get all the hydro-task dependency construction in one single place.