Transaction code refactoring.
Removed unused files.