combine duplicated snippet rendering