Clean up partials by removing the main element.