Move TrashStorageTrait::buildQuery to a hook implementation.

Closes #3569052

Merge request reports

Loading