The wall in the case of Millin Bay was there before the chambered tomb was built as far as I recall, there's a bit about it in one of Burl's books. Beaghmore was another complex built on top of pre-existing neolithic field walls that were left as they were in a lot of places.