set next value using a specific method. small refactoring

uncle bob approves
Same for this method. What about `available_enum_values_for`?