Implement aggregate queries across all projects
e.g. `QueryAccount.new.all_projects.label('flaky').status(:unstarted).count`
Refactor improves testability