Moved get page and page_size into helpers and config