Change dependency of models to optional.