Currently there are validations in both classes which can cause different error messages for similar cases. E.g. : https://github.com/elastic/elasticsearch/pull/36594/files/046db85f404b8ed6892d23422792a561830bdbb9
We should have them in one place, (Verifier if possible).