If the product is soluble in water, the mixture can be extracted with an organic solvent such as ether or methylene chloride, and the extract concentrated to provide the herbicidally effective 2-(4,4-disubstituted-4-oxo-(or thiono)-2-imidazolin-2-yl)nicotinic or 3-quinolinecarboxylic acids, encompassed by formula (I).