Refactored flashcard specs