Refactoring generate_geo_test_objects.