CSHARP-797: Abstracted out the strategy of batching to BatchIterator class.