CMS-2020 Refactoring: Extract common path code from ContentPath into new class wem.api.Path