Reduce data generation code