strip internal fields from principal::create