Remove unused type parameters.