Also, by the time the battery wears out for most people the warranty will be expired, so you won't be risking voiding your warranty by changing the battery yourself.
Apple offers an
extended warranty that includes battery replacement if it depletes by 50% within 2 years. The extended warranty costs $59.