[DBClientAction] Extract making ID list condition from deleteActions() to a new function