Revert "moved passmanager creation to constructor"

This reverts commit 2768bc644306b5c3025e52edd1fc459055c0e32d.