[getEvents] refactoring - moving events tree creation into business layer