Removing unnecessary items in configs