Extract Todo model using factory