Records_in_batches is actually yielding, not returning the batches... deliberately because we don't want to have to have all of the records in memory at once.  So I don't think this works as written... is there another magic spec-ism that would make more sense?