Refactor XingAPI into separate classes.