extract-method: validate()