Strip any nested sections in snippets