Broke out getting page of keys into _get_page_of_keys function in utils
Used new _get_page_of_keys function