Refactors nl_link() helper.