[checkmk-commits] [tribe29/checkmk] 312141: factor out two functions