refactor context_processors