I like Rowling, but you’re right, her earlier works (when the editor had more power than she did) were clearly far superior to her later works. Had she started with the level of writing present in Book 7 of the HP series, it would have been a very short writing career indeed!