Use Hash#delete_if as it returns the hash in all cases.

Hash#reject! returns nil if nothing was rejected. But we always want the
data from the file - no matter if it contained keys we remove or not.