Move NetworkMixin into its own file