SPARK-2497 Exclude companion classes, with their corresponding objects.