The current approach uses stringify, which could cause issues if the path differs. Should categorize by type ID or something instead.