sequencer: refactor transform_todos() to work on a todo_list