Defines teamsnaprb classes dynamically based on the type