Refactor create method for note