Removes unused part of config.