(follow up r79706 to address CR comments) Simplify some of the logic in LinksUpdate.php