Refactor metadata handling in PredictionsBatch and PredictionProcess to improve clarity in input preparation.