refactor code to work flexibly for imports on ontologies if they have a
current version declared