I tend to prefer the approach of
fetch A
wash A
fetch B
wash B
in terms of being easier to read. Of course sometimes there are performance benefits to firing off all the requests right at the start.Anyway I definitely agree that not separating the core logic out from the data fetching/cleaning is a bad idea.