remove legacy Package, Rule and Query