Stripping out duplicate extensions.