Refactoring ext/xmlrpc (incompleted)