Removing unnecessary node types