Refactoring the logic in the validation method for when ContentTypes are saved