[dhcpclient] refactors last patch