getTypeDefinition moves in here from being on BaseModel