Remove ViewModel and move to mogenerator.