Remove unnecessary if case at parse method