Move brand creation into separate function