Revert "introduce StaticQueryMethods trait"

This reverts commit 19ef8d78ff6db273836d028fc304b8c96e118924.