         }
     }
 
-    private let DoNotDisturbSwitchCellID = "DoNotDisturbSwitchCell"
-    private let DoNotDisturbPeriodCellID = "DoNotDisturbPeriodCell"
-
-    private let settingsMoreCellID = "SettingsMoreCell"
-
     override func viewDidLoad() {
         super.viewDidLoad()
 
         title = NSLocalizedString("Notifications & Privacy", comment: "")
-
-        tableView.registerNib(UINib(nibName: DoNotDisturbSwitchCellID, bundle: nil), forCellReuseIdentifier: DoNotDisturbSwitchCellID)
-        tableView.registerNib(UINib(nibName: DoNotDisturbPeriodCellID, bundle: nil), forCellReuseIdentifier: DoNotDisturbPeriodCellID)
-
-        tableView.registerNib(UINib(nibName: settingsMoreCellID, bundle: nil), forCellReuseIdentifier: settingsMoreCellID)
-
-        tableView.separatorInset = UIEdgeInsets(top: 0, left: 20, bottom: 0, right: 0)
 
         let realm = try! Realm()
 

                return cell

            case DoNotDisturbPeriodRow.Period.rawValue:
                let cell = tableView.dequeueReusableCellWithIdentifier(DoNotDisturbPeriodCellID) as! DoNotDisturbPeriodCell
                cell.fromPromptLabel.text = NSLocalizedString("From", comment: "")
                cell.toPromptLabel.text = NSLocalizedString("To", comment: "")



final class NotificationsViewController: SegueViewController {

    @IBOutlet private weak var tableView: UITableView! {
        didSet {
            tableView.registerNibOf(DoNotDisturbSwitchCell)
            tableView.registerNibOf(DoNotDisturbPeriodCell)
            tableView.registerNibOf(SettingsMoreCell)

            tableView.separatorInset = UIEdgeInsets(top: 0, left: 20, bottom: 0, right: 0)
        }
    }

    private var doNotDisturbPeriod = DoNotDisturbPeriod() {
        didSet {
