Split fetching data and its formatting to separate procs.