public static Integer decValue(String key, Integer value) {
        if (value == null) return null;
        return value == 1 ? null : value - 1;
    }
Decrements value by 1; returns null when reaching zero. This helper is
meant to be used with Map#compute.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/Utils.java