Refactor FlashcardFile to PhraseCollection