Refactoring edn-env-var

Extracting to a fn, and adding note about returning nil