def remove_package(identifier)
      removed = @packages.delete_if { |p| p[:id] == identifier || p[:name] == identifier }
      @need_to_update = true if removed
      removed
    end
def remove_package(identifier)
      removed = @packages.delete_if { |p| p[:id] == identifier || p[:name] == identifier }
      @need_to_update = true if removed
      removed
    end
Remove a package from this policy by name or id

 @param identfier [String,Integer] the name or id of the package to remove

 @return [Array, nil] the new packages array or nil if no change