Same comment as in event_factory.py. It's ok but I would probably go for a loop.