Make glance client example more refactable.