Extracted an interface from the TreeExpression class