Refactor the with_env helper
Refactor the with_env helper

Using each_key on a hash is recommended for performance in
situations where the value of the hash is not going to be used.

See the Ruby style guide:

    https://github.com/bbatsov/ruby-style-guide#hash-each

survival/donation-system,survival/donation-system