Remove unneeded objects