Details
Description
There are lots of circumstances where we have to manually validate flags somewhere in the code base. Instead, we should provide a validation function that can be invoked for each flag when it is loaded.
After this, we can follow up with cleaning up the various places in the code base where we validate the flags.