Transaction impl refactor.