`layerListenerKeys` , `listenerKeys` and `topLayer` are never used.