Remove useless types