Remove some duplicate types definitions.