bpf: Refactor x86 JIT into helpers