I am trying to refactor my code as short as possible. But I don\'t know how to do it. Could anyone support for me about this. I have my code like this:
class filt