The death of Elijah Mikealson

I fell like killing of Elijah was not the right decision in the originals final episode because he could’ve been a father figure in hopes life as she really needed her family and her uncle. I found it a bit selfish in the story. I understand that they probably did that irl because of contract or maybe because Daniel Gillies did not want to continue filming as Elijah ( pure assumption). I get that he wanted to die with his brother always and forever but he could’ve been an amazing influence in hope’s life because she clearly needed more familial support since she felt alone a lot.