Maybe reverse it and name it `extract_sources` instead?