Deduplicate models allowed code