Some minor cleanup to TerritoryAccess source code.