Get rid of useless types.