Split methods to classes.