COOK-2611 use bare name for case statement instead of class name