def METHOD_NAME(in_properties):
    properties = in_properties.copy()
    other_tags = json.loads("{" +
                            re.sub("=>", ":", properties.get("other_tags", "")) +
                            "}")
    if "railway" in other_tags:
        properties["railway"] = other_tags["railway"]
    # Forcing bridge in output tags
    if other_tags.get("bridge") == "yes":
        bridge_val = 1
    else:
        bridge_val = 0
    properties["bridge"] = bridge_val
    # Only interested in these classes for now; in priority order
    class_level_properties = ["highway",
                              "railway"]
    for k in class_level_properties:
        if k in properties:
            properties["class"] = k
            properties["type"] = properties[k]
            break
    return properties