remove mapreduces when appropriate