[checkmk-commits] Moved function where it belongs. Improved a few signatures.