Revert "Extract `cabal` utilities functions in `Distribution.Utils`."

This reverts commit cfb3b7290d2120b5fba39261612b7fb5e32322d8.