Moved rest responsibilities from models to controllers.