Refactor: Replace "take 1" and "drop 1" with a single "splitAt 1".