Implemented object removal behavior.