Remove old dialog code