Add ownership management to the MapLayerRegistry