Remove legacy gradient generator.