basic factory
extract getTodo from EditController