Move some generic constants and functions, or supporting functions to a new file. This makes the main script smaller and makes it more focused on the core functionality of the module.