Remove mathn dependency

Remove mathn dependency. Seems that only a single area required changes after the removal of mathn to pass the tests, but we probably need to confirm this. Any ideas?