categories – Exclude a category from the filed under list only on some templates

this is a follow up question to this post Exclude a category from the filed under list

The solution given works for me. However, I’m curious how I can get this to work conditionally? Specifically, only on category archives? E.g. It will still say “Filed Under: A, B, X” on single post templates. But it will say “Filed Under: A, B” on archives.

Working in Genesis, if that helps.