Combined code related to default values into one location.