that type of filter is not really something you want on a relay but more a client, and really you want clients to be able to use custom filters and interact with them at the relay, like a lens or a... iris lol
delegated follows and blocks will allow you to construct a feed or clean up global quite easily
relays could be made to use delegation too