Simplified code to execute aggregation pipeline expressions