Program parts, whose logic is not complicated and which mean pure "diligence work" for a programmer, offer themselves for the automatic generation.
In the modern software development generally the principle is pursued to let generate as much source code as possible. The time expenditure for programming the generator amortizes thereby fast by the time gain with the generation, particularly if the generator can be used more frequently. Then it offers the additional advantage of not making new mistakes. A human programmer who repeatedly performs a routine task, on the other hand, tends to make careless mistakes, which in turn cost time.