Refactor the manage todo spec file