Moved mock device creation from Network to MockDeviceInjector.