Refactor manage todos spec.