Refactor ProcessPillars in pillars implementation.
Refactor ProcessPillars in pillars implementation.

PiperOrigin-RevId: 270799666

tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo