Refactoring of epsg code retrieval