Refactor handling of path through MRPath class