Simplify parsing logic.