Yeah, families are the way to go. Though you still might have to do several checks for each type of object because families cannot group different ones together eg. tilemaps+sprites+9patches. But it still cuts down the amount to just a handful no matter what.
And if you find yourself writing the same actions over and over, it's best practice to put those inside a function (or as of newer versions, custom actions)