elm genlist/gengrid: Refactoring. Moved global function pointers to