Moving configuration handling to a separate file.