A function that extracts mods from osu! API mod values.