Rename VertexFactory to VertexType, and include it as a member of Vertex.