Remove redundant type declarations.