Clean up thrift example code.