(PUP-2214) Remove dead environment method from rest indirector

Removing a private method for looking up the environment from the Rest
indirector becaues it does not seem to be called anymore.