After decades of scrutiny, fans of Harry Potter have noticed some unfortunate elements of the books' narratives that didn't stand out when they were children. Some issues were minor, while others left readers with a bad taste in their mouths that spoiled the series for them. Hogwarts Legacy would be smart to try and amend some of these issues if they want to create a successful game and narrative.
With the exception of Hermione Granger almost every character in Harry Potter is perfectly okay with the enslavement of house-elves in their world. Worse still, the arguments "good" characters like Hagrid use in favor of elf slavery is that the elves enjoy being enslaved.
Hogwarts Legacy is already drawing negative attention and planned boycotts for the way it's using goblins. Portkey Games needs to tread carefully around the similarly racialized topic of house-elves. Even if the game surprises fans by depicting the goblin rebellion in a positive light if players are expected to be okay with house-elf enslavement that could and should overshadow anything else the game does right.