refactoring: remove deprecated math classes.