constructModelFromTypeDefinition is a more consistent function name