Move AppModel to Model