def METHOD_NAME(xml):
    try:
        snow_dist_pk = asearch.find_path(xml, ["PKs","snow distribution"])
    except aerrors.MissingXMLError:
        pass
    else:
        if snow_dist_pk.isElement("primary variable key") and \
             asearch.child_by_name(snow_dist_pk,"primary variable key").getValue() == "surface-precipitation_snow":
            asearch.child_by_name(snow_dist_pk,"primary variable key").setValue("snow-precipitation")
        if snow_dist_pk.isElement("conserved quantity key") and \
             asearch.child_by_name(snow_dist_pk,"conserved quantity key").getValue() == "surface-precipitation_snow":
            asearch.child_by_name(snow_dist_pk,"conserved quantity key").setValue("snow-precipitation")
        if snow_dist_pk.isElement("domain name") and \
           asearch.child_by_name(snow_dist_pk,"domain name").getValue() == "surface":
            asearch.child_by_name(snow_dist_pk,"domain name").setValue("snow")
    try:
        ssk = asearch.find_path(xml, ["state","field evaluators","snow-conductivity"])
    except aerrors.MissingXMLError:
        pass
    else:
        if ssk.isElement("height key"):
            asearch.child_by_name(ssk, "height key").setValue("snow-precipitation")