Removal of duplicate code in ExUtilities.