Refactoring -> efficient minimization of transactions