Refactor to use configuration file in calculating scores