Remove unused method from generator