objc: factored out linked list splitting