Noisy bird in roof


After weeks of being told by pest control we had a rat in our roof or cavity wall, then squirrels, today he's confirmed our suspicion that it's a bird. We can hear it at around midnight and then about 5 am. We hear a shuffling noise then a woodpecker like tapping which lasts maybe 5 seconds then stops. We do have woodpeckers in the area plus tawny owls and wood pigeons. Is it likely to be a woodpecker or do other birds like to tap away? Is there anything we can do to make sure it is safe but doesn't damage our loft 

Thanks very much