Store preferences in template context instead of core