Remove useless type attributes