Refactored bottles method using case statement