Implement DRYer pagination functions