Use share pointers in XiEstimator for template policies