#1754: Restructure the way media handles its type, scheme and extension filtering.