PortalKit: refactor DynamicLoad