 	}
 
 	func applicationDidBecomeActive(_ notification: Notification) {
-		// It’s possible there’s a refresh timer set to go off in the past.
-		// In that case, refresh now and update the timer.
-		refreshTimer?.fireOldTimer()
-		syncTimer?.fireOldTimer()
+		fireOldTimers()
 	}
 	
 	func applicationDidResignActive(_ notification: Notification) {


		NotificationCenter.default.addObserver(self, selector: #selector(unreadCountDidChange(_:)), name: .UnreadCountDidChange, object: nil)
		NotificationCenter.default.addObserver(self, selector: #selector(inspectableObjectsDidChange(_:)), name: .InspectableObjectsDidChange, object: nil)

		appDelegate = self
	}


private extension AppDelegate {

	func fireOldTimers() {
		// It’s possible there’s a refresh timer set to go off in the past.
		// In that case, refresh now and update the timer.
		refreshTimer?.fireOldTimer()
		syncTimer?.fireOldTimer()
	}
	
	func createReaderWindow() -> MainWindowController {

		return windowControllerWithName("MainWindow") as! MainWindowController
