Extract logic for XML-RPC communication into KojiClient class