Remove needless template declarations and named parameters.