Refactored subsystem::remove_entity.