Remove shapely code