Move some settings out of global constants