Share |swapParentAndChild(context, element)| between "createLink" and "unlink".
unlink: Re-factor |execute()| to simplify implementation.