Allow valid_values to take a sub to defer the list creation