I think this can be simplified to `for (entry in toTransform) {`