Don't remove linked formulas when doing a cleanup

If a formula that has recently been upgraded is still linked in, either manually or through switch it shouldn't be removed as part of a cleanup.