move $query member field to GenericUtils class.