Extract equal condition converter

It seems that predicates should be defined as class methods instead of
instance methods.