Can anyone explain what gives Beds Councillors the right to take over parts of Herts?

Can anyone explain what gives Beds Councillors the right to take over parts of Herts?