moves import functionality into its own file