bpf: refactor code to support explicit opt-in for bulk+prio detection