Move out code to a webcommons library