[Admin-panel] Create factory for modal confirmations