Code analyzers consider some EventRepository methods to be too complex. Break down and simplify the EventRepository so it's bearable.