Do some refactoring.

Unduplicate the engine propellant fetch code and make the FuelTank
maxAmount property much more readable.
Fix an obsolescence warning.