[SETUPLIB][USETUP] Move the settings code from usetup to setuplib.