Well, you could always try disconnecting it and see what breaks. If it's just for the doorbell, then it's easy enough to test. You might also want to get up there with a voltmeter to see whether you're likely to kill yourself or not monkeying with those wires.