Remove unused GetLayer function (replaced by LayerRegistry::CreateLayer)

Per #1636.