Add AppCtrl#createModel function
Refactor AppCtrl#createModel #177