Extract some base stuff to base_parser