Remove extraneous contents directives