     
     public func createReadingList(named name: String, description: String? = nil, with articles: [WMFArticle] = []) throws -> ReadingList {
         assert(Thread.isMainThread)
-        let moc = dataStore.viewContext
         let existingListRequest: NSFetchRequest<ReadingList> = ReadingList.fetchRequest()
         existingListRequest.predicate = NSPredicate(format: "name MATCHES[c] %@", name)
         existingListRequest.fetchLimit = 1

        return readingList
    }
    
}

    }
    
    public func delete(readingLists: [ReadingList]) throws {
        let readingListsToDeleteRequest: NSFetchRequest<ReadingList> = ReadingList.fetchRequest()
        let names = readingLists.flatMap({ $0.name })
        readingListsToDeleteRequest.predicate = NSPredicate(format: "name IN %@", names)
        let readingListsToDelete = try moc.fetch(readingListsToDeleteRequest)
        
        for readingList in readingListsToDelete {
