Cleanup annoying ruby snippets