Follow-up from #13323. This functionality can be made applicable outside of the parser and therefore should not exist at the parser level.