session-manager: start removing thrift code