Removing a postgis layer in repository removes it from database but does not remove it from the legend.