Refactor todo list creation in spec.