Reimplement part1 based on variant as well.
Diable --generate-ostream for now.