source-file taxonomy doesn't need to be hierarchical
Make import_function() return the new post ID
Refactor import_function and import_class to remove code duplication