Switch from using properties to config() for CookieComponent.