Simplify parsing code.