Merge layerFilter option into layers