Conditional routing with predicate functions.