Refactor #4240: Remove purge functions