Factor legacy async predicates into legacy.rb