Optimize DataTreeCandidate.applyToModification()