moved TerritoryType into the types package