Moved network defines and client creation functions to separate files.