Refactor the validation rules assertions.