Remove some unnecessary code from note model