Move host-side code to bluetooth utils