private static void removeAccount(Account account, AccountManager accountManager) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {
            accountManager.removeAccountExplicitly(account);
        } else {
            accountManager.removeAccount(account, null, null);
        }
    }
Get configured account

@param context
@return account or null if none
app/src/main/java/com/github/pockethub/android/accounts/AccountUtils.java