Extract methods and predicates