PHP-987: Split batches automagically