Converts EditorModel into a factory for easy mocking in the future