Issue #3486995 by nicxvan: Clean up how ModuleInstaller invokes hooks around installing other modules
mentioned in commit 42402ecb