[checkmk-commits] moved some first rule matching utility functions to dedicated module