ENGINE-1378: refactoring API transactions