Update Spellbook.dematerialize to be a module