Move over from rolling custom media library code to the Media modal code.