Move environment out of payload.