Refactor manage todo spec