I recently went to a Tolkien expert's lecture (author of the latest biography https://www.amazon.co.uk/Tolkien-Raymond-Edwards/dp/07198098... ). He was very adamant that Tolkien didn't like allegories and instead filled his books with his moral values in a more subtle way. It is easy for us to project our own allegories on someone else's books, but anything you may see in LOTR was only made for good storytelling and not with an intention of allegory.