Rule based ingredient processing