[checkmk-commits] Move some nested helper functions to top level namespace