[#6463] Move get_repo_type() to Extractor and add import guards

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>
4 files changed