remove redundant shared partials