Implement dhcp_opt_add_lease to reduce redundant code