Fix case statement

Now the right recipes are included based on the layers assigned to the instance