Fixes #1221: make it easier to subclass BaseDataProvider with custom pagination.