Refactor Path methods in a module