Remove redundant types