Move global settings to RuntimeContext