Refactor configuration file location into parameters.