Move protocol handlers into a submodule.