Trimming the extras from the config