Usually better to subclass in a situation like this. You can imagine as more things use FilterForm this if statement will grow and grow. But ok for now.