Refactored IncludeExpressions into a template function