Cleanup page constants and duplicate code.
Cleanup report url parsing and add summary.