Removes unnecessary configurations