Refactor the manage todos spec