BUG: Only delete link_funcs if they exist.