Group redundant code blocks.