The same query is also executed in line 21. As these could b expensive queries, we should minimize them. 
At least to have dry code.
I guess in the normal case all the stat producer's contain the same queries as the list producer's? Maybe we can extract this commonality. What do you think?