Refactoring rake task create_channel