Remove redundant generic type test