Extracted gem from apache/thrift