Adjusted ReductionSpecializer to use from_function syntax