Replace protected environment reference.