Refactored GetExpression()