The Octopussy German village is a redress of sets from Douglas Camfield’s Ivanhoe and The 1982 Hunchback of Notre Dame.
I’m sure that Mrs. Whistler’s schoolhouse is a correlation of set elements from various ITC shows, and quite possibly the island hospital/bordello in Carry On Again Doctor. It has a very ITC look.
The other way around - but the laser in Golden Gun is in Blake’s 7 as the London engine, and the brush in LALD which may have come from Danger Man ends up in Doctor Who - Revenge of the Cybermen.