Remove unnecessary generator