Move validateIndexSettings code into 3 separate classes

Change-Id: I027f2d7044237f7a9a9c12d7a7adfb2c94194177