extract available_values variable to a method