Simplify simple_relation_filter.rb