[task] Update codes to make product not depend with thrift