Refactored raw config file generation

It's now a function within the compass helper module.