Split off assignment generating code.