One would tend to think you would give yourself the best possible glide ratio by reducing flaps
If you read the report:
At 1542:45, the Capt reported the runway in sight and instructed the FO to raise the flaps up and 4 seconds later to raise the landing gear.