Move parsePrimitive to a better location