BZ-11716: Add validation to remove the usageType from the array once the ecms in there are removed