Move pagination to its own package.