refactor: Rename _HistoryWrapper.transaction_items_ops to _HistoryWrapper.transaction_items_states.
refactor: Rename functions in Base.history_undo.
refactor: Move obsoleted packages handling within Base.history_undo.
Extract transaction item history states parsing to a standalone function.
refactor: Move the content of HistoryCommand._hcmd_undo to BaseCli.history_undo_transaction.
refactor: Rename Base.history_undo to Base.history_undo_items_states.