Minor nit-pick, but I'd probably name these something more appropriate for this context (`root` and `prefix`, for example), rather than the context they're currently coming from. But it's far from a significant issue :)