Refactor SlashDelimitedPath; put in separate package