Issue #2617446 by joshi.rohit100: CropEffect should inject the query factory, not an actual query instance