Flex reports: refactor populating results

Reorganizing the gathering of results so that data can be reused
presented in different groupings without needing to requery the data.