Use getGaudiType() instead of checking for instance types by hand, now that gaudi/Gaudi!929 (merged) has been merged.
getGaudiType()