LPS-34235 Provide infrastructure for importing into global scope

Hey Mike,

This is the other part of the global scope import infrastructure.

The change here is to determine if a staged model needs to be imported to global scope, more specifically this change will provide a way to determine the target group id, based on the to-be-imported staged model.

The change itself is pretty straightforward, and then I'm just applying the pattern to everywhere.

Thanks,

Máté