ENG-5511: Refactoring in HostMessenger and ZKUtils