Add macro for validators static get function The static Get function in the validator classes was a code duplicate. It has been extracted into a macro which can then by used by the different validator classes. Change-Id: I13d5f33a930f58f5b7a73371d79a184603e2e03c