refactoring paging logic of carbon.registry.Registry