Function factory for mapping object values from old paths to new paths.