Split out the common files to its own module.