Refactored nic_profiles again

XML tests are failing... for unexpected parse error