YARN-7237 Cleanup usages of ResourceProfiles
YARN-6909 Use LightWeightedResource when number of resource types more than two