Experimenting to move the creation of types from parser to types module