Changed to retrieve brand colors by function and removed local reference to defaults to allow it to be garbage collected