extract two methods from Worksheet#data_validation