Move creation of box group after checks.