Refactor dllgrouping
checking hasClientProfile is better than counting