No real changes, just refactor wxProtocol ctor to use a new function that can be reused elsewhere too.