Transactions and long time in refactoring