Cleaning up transfer API path handling.