I would love to know, in hindsight: why did the company decide to replace you on something that you loved doing? Was this a case of under performance and the new person effectively performed much better than you, or something else?
I have been victim of being replaced on something that I loved doing and I was very passionate about (a couple times over my career), and to this day (years later) I still think I was hands down much better than the person I was replaced with at that task, under every aspect: pure delivery performance, communication, sticking to improvements that provided value, maniacal customer support when bugs arose. In other words, I deeply and truly cared, too much actually and fell under the trap you described as “own what you own” (it was a feature I actually patented while working under the company). For the other person, that piece was just “meh, another thing I have to work on and maintain”, which ended up being my attitude when I was moved to something else.
I’ve tried repeatedly to assess the situation from an objective point of view to see if my line of thinking missed some aspects which might have caused my removal, but I just couldn’t find any bias in my reasoning if not of clueless upper management.