Easing pain is not same as killing early with overdoses.
Hospices manage pain, they have no desire to end life early.
Some hospices hasten death with overdoses of pain meds.
The moral principle that has existed for longest time and still works is to give as much pain medication as necessary to relieve suffering even if it secondarily hastens death.
Not morally permissible is giving more medication than necessary and causing death.