refactor: make proper use of gb_sets API