[REF] refactor entry_to_shape
[REF] refactor entry_to_shape

* removed unused paths
* reformat source code

bonus: extract _postgis_index_name helper function and use it in places where
the index name was generated by hand.

OCA/geospatial,OCA/geospatial,OCA/geospatial