Factoring out models from controllers.