Move todoFactory to the todos directory