TrigConfStorage: support LB queries in TriggerCoolUtils and cleanup
Add support for LB-based queries in the various TriggerCoolUtil
functions. Also remove code duplication, delete/move unused functions
and add unit test. This should have no impact on existing code.
First step in addressing ATR-26381.