Split code into library and example projects.