Substituting a var for a lengthy method call