Move and generalise `extract_version_arguments`
Test config