public static function bootHasKeptFlagBehavior(): void
    {
        static::creating(function ($entity) {
            if (!$entity->is_kept) {
                $entity->is_kept = false;
            }
        });

        static::updating(function ($entity) {
            if (!$entity->is_kept && $entity->setKeptOnUpdate) {
                $entity->is_kept = true;
            }
        });
    }