Can we move this into `parser_base.py`?