Fix factory definition for Player.