[Frontend] Factor AddUnmappedPath() out of AddPath() and simplify.