Merge duplicated code for printiing fetch results between fetch and pull
tmp