unifies removeCell functions