Factor out the pager into its own package.