Factor redundant error checks into the PEG operators.