Minor refactor. Adding flag for spent batch to pipeline config