Refactor protocol command's handling of repo and channel

Created by  dblsaiko  on March 29, 2024
7MFC7MVAFNDP4ANWQN25ASBGT4DLLRJ3GKAT4DS56EBKSMUDSDEQC
Change contents