Refactoring geo_locate and specs.