Implement function outlining for thrift