Remove useless parametric types.