Move the class NoStaleQueriesAllowed into common project

Remove duplicated classes from integration test and import projects