Extract the iterator interface to its own file.
Extract to PEG interface into its own file.