Refactor muc user handler