Refactor paths using Context.