split off repeat portion of classes