Refactored fetching of environment variables.
Added project metadata destruction support.