It’s the same principle within God’s plan too.
Often times it is seems as if He is taking away things when really he is “adding to” or blessing us.
Just like he did for King Asa. Asa had inherited a mess from his father’s idol worship. But when Asa became ruler he took away the idols. By doing this he honored God and God blessed him for it.
Having something taken away may be painful as you’re going through it but remember God is working the equation for you to be blessed.