Remove duplicate contacts and providers refs