Abstract business logic into its own file.