<div id="comment:0"></div> Functions such as `set_from_pari_gen` should probably be moved to `sage.libs.pari.convert_sage`. The compile-time dependency on `sage.libs.flint.ulong_extras` is for the use of `n_factor`. CC: @videlec @kliem @tscrim Component: **refactoring** Author: **Matthias Koeppe, Jonathan Kliem** Branch/Commit: **[`b4477da`](https://github.com/sagemath/sagetrac-mirror/commit/b4477dac79a4d35ee1213d2aaa5f189bbff9d44e)** Reviewer: **Jonathan Kliem, Matthias Koeppe** _Issue created by migration from https://trac.sagemath.org/ticket/30022_