The lambda defined in elementFilter is evaluated with 'DynamicQuery' which is a reflection based simple evaluator for lambdas. In short, it can't deal with things like this, it can only deal with an object and a method called onto it e.g. Count(), but not member access of a property and then call a method on it.
I know it's a limitation, but it's what is supported. A workaround is to use a frameworksettings file and define a setting and use that setting's value in a perform rule.