Refractor todo list creation in spec