[orm] refactoring extract method rollback transaction