I had always thought that the later portion of the book was a response to the industrialization of the areas of Sarehole, which was his childhood home, and is considered to be the basis of the Shire.