remove code duplication Model interpreter

duplicates in Code.run; generalized interpreterWarning