Move import functions into its own class.