[#58501092] Refactor to omit env.merge!

Since we're defining a completely clean ENV anyway.