Flake8ify
Refactor the transaction