Extract math related methods to the right class