The alternative to in-code impersonation is to define it at the plugin registration level.
This can be done at the registration level step using the Run in User's Context attribute, as per this screenshot:
Unlike the in-code scenario, this value will be static as opposed to having the option to resolve the GUID at runtime.