Generate classes in the proper protection domain.