Move prepared_model method into model module