Change validation class to use operations to determine their behavior, what kind of validation they do.
Minor code reorganization.