Refactor GraphSON methods a bit for better reuse/readability.