extract layers as a group using recipe files, to improve performance