Removed parent_id check from calculated flag destroyer to avoid migration issues