Revert "add a parent plugin class to pass query to plugins"

This reverts commit 08ea5704124cee8299a135891d92bee6513923d0.