Refactoring to extract component ToDoList component.