Refactored getNoteStore to be more clear.