Renames getLayer => getLayerByModel.