     instead of using isVisible = false or hide()
 */
 class Tray: NSObject, NSMenuDelegate, ItemBaseDelegate {
+  private static let center = NSStatusBar.system()
+  private static let length = NSVariableStatusItemLength
+
+  private var updatedAgoItem: UpdatedAgoItem?
   private var listeners = [Listener]()
   private let openEvent = Event<Void>()
   private let closeEvent = Event<Void>()
   private let openInTerminalClickEvent = Event<Void>()
   private var isOpen = false
-  private var updatedAgoItem: UpdatedAgoItem?
   private let menu = NSMenu()
   private var defaultCount = 0
-  private let item: NSStatusItem = NSStatusBar.system()
-    .statusItem(withLength: NSVariableStatusItemLength)
+  private let item = Tray.center.statusItem(withLength: Tray.length)
   internal weak var delegate: TrayDelegate?
 
   /**

import AppKit
import EmitterKit
import Cocoa
import SwiftyUserDefaults

/**
  Represents an item in the menu bar

  /*
    Completely removes item from menu bar
  */
  func destroy() {
    Tray.center.removeStatusItem(item)
  }
  deinit { destroy() }

  /**
    @block is called every time the drop down menu bar is shown
