Automatic Peccei–Quinn symmetry