Extract variables for  z-index.
Remove patterns layer.