Channels pipe moved to separate class