Split out table extraction into a magic library, and expose funding source metadata in output