Do protocol detection _after_ channel discovery

It could be done in a specific pass, but simply
moving it to the backend is ok for now.