When the devil or Satan is mentioned in the Bible or other holy books this even if it is not to be understood literally is something which has been pulled out of thin air

What is the correctly punctuated version of this sentence?
When the "devil" or "Satan" is mentioned in the Bible or other holy books, this, even if it is not to be understood literally, is something which has been pulled out of thin air.