Remove duplicate code from config.js