Refactor the code snippet library for the Playground