[checkmk-commits] Move the non-constant state out of check_api.