Refactor function LayerFactory::get(config = {})
#449
Merged
LayerFactory::get(config = {})
#449