Fixed portal_factory case, refs #21853