Move pagination to the core framework.