Simplify parse logic.