Delegates validation of batch creation to batch.
Adds unit testing for batch validations in pipeline.
Adds migration for reading min_size of batch from database.