I think the `get_batch_size_from_command()` name should change or you should split up this function into preparation and getter logic. As-is, I don't like that a "get" method is mutating its argument.