Baku used to have the obvious code BAK, in 2004 the airport was changed to be named after Heydar Aliyev, which explains the YD, but HYD = Hyderabad, G & H quite close?
Greek alphabet doesn't always transpose, I have always got mixed up with that lot!