Begin work on factoring out common networking code.