Refactored the spell book.