Restore deploy environment precedence