Refactor model

Split a file of 'editor-make-model.js'.