Would it make sense to abstract "wildcard" logic into its own little method?