Remove singletone pattern, use class instead

@redonkulus @lingyan @Vijar