Split out code into modules.