Remove unnecessary partials.