Improve managed dependency closure