Product removal by in-situ crystallization