Refactor dashboard and reports.