HDFS-5673: remove unneeded buildAndValidate method.