Refactor: move application events into custom namespace