to_hash functionality in ProductionBatch