“Now in courts you can just quote the scripture and tell that this practice of removing wrongdoers is directly mentioned in the Bible.”
Exactly.
The very same Bible with passages that condone genocide, the execution of children for sassing their parents, and the ownership of other human beings as property.
Simple, really.