BLP prepares to take over Thames Water’s legal function