Static models declaration, factory also accepts classnames