Remove the redundant objects.