Adapt reports to SummaryReportView changes.

Some refactoring to adapt code to work with new SummaryReportView structure. Closes #375.