Refactor apply command's handling of repo and channel

Created by  dblsaiko  on March 29, 2024
YV5PVUXVFHZVG5D4R4IHYBXUL4GV3YSXST4JO23PJRGBLFKOGR7AC
Change contents