Rename parameters to make it obvious which connection they require
split core of getSchemaImports into a seperate function
add trivial tests for getSchemaImports