Use set for requires_flags for simpler subset check