Remove useless generator