def remove_empty_fields(obj: dict) -> dict:
    """
    Removes empty fields from NetBox objects.

    This ensures NetBox objects do not return invalid None values in fields.
    :param obj: A NetBox formatted object
    """
    return {k: v for k, v in obj.items() if v is not None}