Instead of introducing a `generateGroup` function, can you reuse the existing group objects, copy them and update the id and date?