Refactor: extracted the PageSummary object to its own class.