Refactors ResourcePath