[W.I.P] Remove a switch statement in Configuration.Builder

Remove a switch statement in Configuration.Builder class to make adding new validator easy and safe.