Move environment_dict to base_template_context, remove method