Refactor ns client, so it more clearly separates fetching xml and parsing it into a response