You run a bunch of calculations and then try to increase the most limiting. Not much you can do about structural. If you are landing weight limited you might look at the alternate. That leaves you with TO runway limits and TO climb limits. If you are runway limited more flaps might get you off shorter but hurt the climb numbers. If you use improved climb numbers you are using some of that now excess runway to increase your speed and therefore your climb gradient.