PortalKit: remove some unuseful code