def METHOD_NAME(cls, accumulator, current_value):
    nat, prov, esg = accumulator
    if current_value["grant.code"] == "ESG":
        esg.append(current_value)
    elif PROVINCIAL_CODE.match(current_value["grant.code"]):
        prov.append(current_value)
    else:
        nat.append(current_value)
    return nat, prov, esg