Move ListNode to common package.