Remove deprecation warnings caused by #47.