def package_quantity(value, unit=None):
    """Package a quantity value in a standardised form."""
    quantity = {"quantity_value": value}
    if unit:
        quantity["unit"] = unit
    return quantity