Cleaner code in note's transform