Move parser and iterator variables to be class members