None of the religious texts of the popular religions where a particular text is central have a strong, well-defined “internal logic”, just a variety of different interpretations of varying popularity.
(Also, the idea that a religion is inherently defined by a text, implicit in the upthread comment, is a false generalization.)