This `if` statement looks a lot like `ExportUtils.normalizeProfile`. Consider just calling that method from here.