Modularize network backend