Make code more concise in apple_picker.rb