Remove duplicated type information from type hints.