Exctracting the channel initialization to a separate class.