Using policy files to make a cookbook environment aware

We have recently started exploring policy files. I have a requirement as follows:
Cookbook A
recipe 1
recipe 2
recipe 3
The default.rb file includes all the above recipes in a sequence. We want recipe 2 to be included only for env A but to be excluded for env B. How can I achieve this using policy files?

Thanks,
S