Extremely Long Snippet Help!

My snippet got a little too long and complex, so it sometimes froze over. It is so long it exceeds the largest threshold to publish the snippet. I would appreciate any guidance.

@Felix Can you please check this post? Organizing Long Snippet Contents - #2 by Cedric_Debono_Blaze. It lists many good tips on how to organize your long snippets.