[checkmk-commits] Extract stuff from huge global loop