Deduplicate index in model method.