Why is there a getCountryByCountry code private function separately?