Split code into its own modules wherever possible.