Calculate last page to adjust links
Refactor: Inline method
Refactor: Move Method paginate to html_processor