You’re probably breaking the law by moving them.
I think common sense takes precedence over the law when the safety of an individual creature is threatened rather than a colony or their local environmental circumstances.
For example, a few years ago a was walking through the warehouse section of the place I was working and noticed something walking across the floor towards me. It was a newt, I thing a smooth newt, but it didn’t have a crest so may have been a female of either common species.
Now, I could have just left it well alone, but in doing so, as it was marching across a smooth concrete floor, where forklift trucks ran moving around heavy pelleted loads, would, with a very, very high degree of certainty, ended up as a very thin smear across the concrete.
What I did was pick the little creature up, get some paper hand towels and wet them and lightly wrap Tiny* in them, then get a small plastic box to keep it safe on the way home.
Then I checked out the local nature conservancy and gave them a call, and they gave me the location of the nearest suitable pond, which was over half a mile where I found Tiny, so I took it there and released it.
I cannot, for the life of me, imagine how an amphibian about 3” long could have found its way into a large commercial building on a large industrial estate, with the nearest stream at least a quarter of a mile away.
*Tiny, because it was my newt. 😁