move getCommonPathPrefixData to coretree