Refactor, consolidate pager theme funcs #5059