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.

Relates to ATR-26381.
1 job for confcool in 0 seconds (queued for 25 seconds)