Convert toplevel functions and variables into a <modulename>TopLevel static class.