Extract out to classes.