This function is only used once unless I miss something, maybe inline it? If not, app_mod is a confusing argument name for a models module