[Code Refactor] Separate logic for making opsChan from main()