Is it always layered? If so, are we expecting the course_id from the outer context to be different from the one here? It seems to me that we may only need the outer one.