refactor for chef_environment attribute