Config (validation) code refactoring mini proposal


#1

Hi,

Here is a mini proposal for refactoring config validation code, as it was discussed in the last TOC meeting: https://docs.google.com/document/d/1atY5vDHy5sXJP7qIaFQS3ixQZvOxUciPgULH5qTPX_8/edit?ts=5c7f1f49#

PTAL and leave comments.

Thanks