Convert frame handler modules to classes