Remove unnecessary type parameters.