[Clipboard API] Refactor Pasteboard item reading functions to work on both iOS and...