Removes if in the parser using double dispatch.

Double dispatch!