[checkmk-commits] ListOf: Cleaned up duplicate code