Simplify parsing of primitives