Experiment with Predicate to reduce code bloat.