Remove 'registration_state' unused var.