Splitting config into its own class and a couple lines of code in net class