Separates library code into its own module