Turned group mapper into a class function.