Modularize networking