         tableView.insertRows(at: indexPaths, with: .automatic)
         updateEditing()
     }
-
-    // MARK: AccountUpdateDelegate
-
+}
+
+extension AccountsViewController: AccountUpdateDelegate {
     func updateAccount(_ account: Account) {
         guard keychain.updateAccount(account) else {
             presentTryAgainAlertWithTitle(

private let manualSegueIdentifier = "ManualSegue"
private let editAccountSegueIdentifier = "EditAccountSegue"

class AccountsViewController: UITableViewController, UISearchResultsUpdating,
AccountCreationDelegate, AccountUpdateDelegate {
    @IBOutlet weak var emptyView: UIView!
    fileprivate let keychain = Keychain()
    fileprivate let userDefaults = UserDefaults.standard

                                        locale: nil) != nil
        }
    }
}

extension AccountsViewController: AccountCreationDelegate {
    func createAccount(_ account: Account) {
        guard keychain.insertAccount(account) else {
            presentTryAgainAlertWithTitle(
