Further refactoring: Introduce Parser base class.