Duplicite code moved to _validate_isbn().