I've had good PMs that have managed this. On one team it was so bad the PM told the business they had to do an ROI study for any suggested change. What a glorious time as a dev.