def get_ucum_code_part(part, numerator: bool = False):
    """Use the parsed part to create the UCUM code.
    If the part is a numerator, only include exponent if exponent != 1."""
    if numerator and str(part["exponent"]) == "1":
        return part["ucum_code"]
    return part["ucum_code"] + str(part["exponent"])