Refactor the system tray's context menu