Extra defensive code creating package identifiers