DRYer pagination.