You can also mix road with mtb buy older cheaper tech say 10 speed. 11 -40 cassettes exist in ten speed. Eg praxis works. Long cage xo rear mech covers it so I’d imagine shimano would too. Or even consider a triple up front........... so many options but you might want bigger than a mtb 44...