Refactoring: Use is_caseobject, where appropriate.
This should make the code more readable (if not, the macro shouldn't exist).
Authored by: david_costanzo 2023-12-12
Parent: [r6017]
Child: [r6019]