Move functions from settings to helpers and utils